

package com.gking.centerSystem.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 系统分类
 */
@Data
@TableName("sy_sort")
public class Sort implements Serializable {

    private static final long serialVersionUID = 1L;

    //id
    @TableId
    private String id;

    //系统唯一编码
    @TableField(value = "systemCode")
    private String systemCode;

    //分类描述
    @TableField(value = "description")
    private String description;

    //分类等级
    @TableField(value = "level")
    private Integer level;

    //分类优先级，数字越小优先级越高
    @TableField(value = "weight")
    private Integer weight;

    //父级id
    @TableField(value = "parentId")
    private String parentId;

    //分类类型，一级分类以下类型才有
    @TableField(value = "type")
    private String type;

    //是否删除
    @TableField(value = "isDelete")
    private Integer isDelete;

    //创建时间
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //创建者id
    @TableField(value = "createUserId", fill = FieldFill.INSERT)
    private String createUserId;

    //更新时间
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    //更新者id
    @TableField(value = "updateUserId", fill = FieldFill.UPDATE)
    private String updateUserId;

    //删除时间
    @TableField(value = "deleteTime")
    private LocalDateTime deleteTime;

    //删除者id
    @TableField(value = "deleteUserId")
    private String deleteUserId;

}
